import instance from "./request.js";

export const getDetail=(id:number)=>{
    return instance.get(`/article/${id}`)
}

export const getTian=(data:any)=>{
    return instance.post('/article',data)
}
export const getBian=(id:number,data:any)=>{
    return instance.put(`/article/${id}`,data)
}

export const getPing=(data:any)=>{
    return instance.post('/discuss',data)
}

export const getList=(data:any)=>{
    return instance.get('/article/list')
}
export const getLogin=(data:ILogin)=>{
    return instance.post('/login',data)
}